<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_area_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="start_province,start_city">
              <select class="start_province form-control" name="start_province" data-url="ajax/areac" >
                <option value="{$start_province}" selected>{$start_province_name}</option>
              </select>
              <select class="start_city form-control" name="start_city" data-url="ajax/areac">
                <option value="{$start_city}" selected>{$start_city_name}</option>
              </select>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_area_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="end_province,end_city">
                <select class="end_province form-control" name="end_province" data-url="ajax/areac">
                    <option value="{$end_province}" selected>{$end_province_name}</option>
                </select>
                <select class="end_city form-control" name="end_city" data-url="ajax/areac">
                    <option value="{$end_city}" selected>{$end_city_name}</option>
                </select>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plane_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-plane_image" data-rule="required" class="form-control" size="50" name="row[plane_image]" type="text" value="{$row.plane_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-plane_image" class="btn btn-danger faupload" data-input-id="c-plane_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-plane_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-plane_image" class="btn btn-primary fachoose" data-input-id="c-plane_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-plane_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-plane_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[start_date]" type="text" value="{$row.start_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_total')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_total" data-rule="required" class="form-control" name="row[max_total]" type="number" value="{$row.max_total|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min_total')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min_total" data-rule="required" class="form-control" name="row[min_total]" type="number" value="{$row.min_total|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price_str')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price_str" class="form-control" name="row[price_str]" type="text" value="{$row.price_str|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
